<template>
  <div>
    <!-- <div class="head">
      <div class="content">
        <div><img :src="logo" alt="" class="logo" /></div>
        <div>
          <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">房产经纪</a></li>
            <li><a href="#">地产分类</a></li>
            <li><a href="#">关于我们</a></li>
          </ul>
        </div>
      </div>
    </div> -->
      <!-- <div class="particulars">
        <div class="real">
          <div>
            <a href="">
              <img src="../../assets/aircraft.png" alt="" class="aircraft" />
            </a>
          </div>
          <div class="details">
            <a href=""> <h1>地产详情</h1></a>
          </div>
        </div>
      </div> -->
      <div class="w">
        <div class="content">
          <img :src="logo" alt="" class="logo" />
          <ul>
            <!-- router-link渲染成a标签-->
            <li v-for="(item, index) in Routers" :key="index">
              <router-link :to="item.path" router-link-active>{{
                item.title
              }}</router-link>
            </li>
          </ul>
        </div>
      </div>
      <div class="frame"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      logo: require("@/assets/logo.png"),
      Routers: [
        { path: "/", title: "首页" },
        { path: "/agent", title: "房产经纪" },
        { path: "/estate", title: "地产分类" },
        { path: "/my", title: "关于我们" },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.content {
  width: 100%;
  display: flex;
}
.frame{
  border-bottom: 2px solid rgba(204, 204, 204, 0.616);
}
.logo {
  width: 50px;
  margin-right: 150px;
}
.active {
  background-color: #a79d93;
  color: white;
}
ul {
  display: flex;
  align-items: center;
  li {
    line-height: 65px;
    font-size: 15px;
    color: black;
    a {
      text-decoration: none;
      padding: 0 20px;
    }
  }
}
.router-link-exact-active {
  padding: 20px;
  background-color: #a79d93;
  color: white;
}
.particulars {
  color: #f7a738;
  margin: 0 auto;
}
.real {
  display: flex;
  width: 200px;
  height: 40px;
  font-size: 20px;
  font-weight: normal;
  //logo
  .aircraft {
    width: 40px;
    height: 40px;
  }
  //标题
  .details {
    margin-top: 10px;
    width: 80px;
    height: 20px;
  }
}
.body {
  padding-top: 10px;
  height: 760px;
  border: 3px solid #f7f5f6;
  margin-bottom: 10px;
  .Daxia {
    font-size: 20px;
  }
  .left {
    height: 500px;
    width: 65%;
  }
  .right {
    margin-right: 10px;
    width: 32%;
    height: 500px;
    .top {
      height: 50%;
    }
  }
  .pictures {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    border-bottom: 3px solid #f7f5f6;
  }
  .text {
    margin-top: 20px;
  }
  .tou {
    margin-top: 10px;
  }
}
</style>